package com.easylive.app.photo;


import com.stx.xhb.androidx.holder.HolderCreator;
import com.stx.xhb.androidx.holder.ViewHolder;

public class BannerHolderCreator implements HolderCreator<ViewHolder> {
    public ImageViewHolder imageViewHolder;

    public BannerHolderCreator() {
        this.imageViewHolder = new ImageViewHolder();
    }

    @Override
    public ViewHolder createViewHolder(int viewType) {
        if (viewType == 0) {
            return imageViewHolder;
        }
        return new ImageViewHolder();
    }

    @Override
    public int getViewType(int position) {
        return position;
    }
}
